package com.po;

import java.util.Date;

/**
 * AbstractOpOrderServiceId entity provides the base persistence definition of
 * the OpOrderServiceId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractOpOrderServiceId implements java.io.Serializable {

	// Fields

	private String orderId;
	private String orderDesc;
	private String orderName;
	private Date createDate;
	private String createUserId;
	private Date modifyDate;
	private String modifyUserId;
	private Date submitDate;
	private String orderState;
	private String approveUserName;
	private String approveDesc;
	private String objId;
	private String deptId;
	private String apply;
	private String download;
	private String detail;

	// Constructors

	/** default constructor */
	public AbstractOpOrderServiceId() {
	}

	/** minimal constructor */
	public AbstractOpOrderServiceId(String detail) {
		this.detail = detail;
	}

	/** full constructor */
	public AbstractOpOrderServiceId(String orderId, String orderDesc,
			String orderName, Date createDate, String createUserId,
			Date modifyDate, String modifyUserId, Date submitDate,
			String orderState, String approveUserName, String approveDesc,
			String objId, String deptId, String apply, String download,
			String detail) {
		this.orderId = orderId;
		this.orderDesc = orderDesc;
		this.orderName = orderName;
		this.createDate = createDate;
		this.createUserId = createUserId;
		this.modifyDate = modifyDate;
		this.modifyUserId = modifyUserId;
		this.submitDate = submitDate;
		this.orderState = orderState;
		this.approveUserName = approveUserName;
		this.approveDesc = approveDesc;
		this.objId = objId;
		this.deptId = deptId;
		this.apply = apply;
		this.download = download;
		this.detail = detail;
	}

	// Property accessors

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderDesc() {
		return this.orderDesc;
	}

	public void setOrderDesc(String orderDesc) {
		this.orderDesc = orderDesc;
	}

	public String getOrderName() {
		return this.orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public Date getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getModifyUserId() {
		return this.modifyUserId;
	}

	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public Date getSubmitDate() {
		return this.submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public String getOrderState() {
		return this.orderState;
	}

	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}

	public String getApproveUserName() {
		return this.approveUserName;
	}

	public void setApproveUserName(String approveUserName) {
		this.approveUserName = approveUserName;
	}

	public String getApproveDesc() {
		return this.approveDesc;
	}

	public void setApproveDesc(String approveDesc) {
		this.approveDesc = approveDesc;
	}

	public String getObjId() {
		return this.objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public String getDeptId() {
		return this.deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getApply() {
		return this.apply;
	}

	public void setApply(String apply) {
		this.apply = apply;
	}

	public String getDownload() {
		return this.download;
	}

	public void setDownload(String download) {
		this.download = download;
	}

	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractOpOrderServiceId))
			return false;
		AbstractOpOrderServiceId castOther = (AbstractOpOrderServiceId) other;

		return ((this.getOrderId() == castOther.getOrderId()) || (this
				.getOrderId() != null
				&& castOther.getOrderId() != null && this.getOrderId().equals(
				castOther.getOrderId())))
				&& ((this.getOrderDesc() == castOther.getOrderDesc()) || (this
						.getOrderDesc() != null
						&& castOther.getOrderDesc() != null && this
						.getOrderDesc().equals(castOther.getOrderDesc())))
				&& ((this.getOrderName() == castOther.getOrderName()) || (this
						.getOrderName() != null
						&& castOther.getOrderName() != null && this
						.getOrderName().equals(castOther.getOrderName())))
				&& ((this.getCreateDate() == castOther.getCreateDate()) || (this
						.getCreateDate() != null
						&& castOther.getCreateDate() != null && this
						.getCreateDate().equals(castOther.getCreateDate())))
				&& ((this.getCreateUserId() == castOther.getCreateUserId()) || (this
						.getCreateUserId() != null
						&& castOther.getCreateUserId() != null && this
						.getCreateUserId().equals(castOther.getCreateUserId())))
				&& ((this.getModifyDate() == castOther.getModifyDate()) || (this
						.getModifyDate() != null
						&& castOther.getModifyDate() != null && this
						.getModifyDate().equals(castOther.getModifyDate())))
				&& ((this.getModifyUserId() == castOther.getModifyUserId()) || (this
						.getModifyUserId() != null
						&& castOther.getModifyUserId() != null && this
						.getModifyUserId().equals(castOther.getModifyUserId())))
				&& ((this.getSubmitDate() == castOther.getSubmitDate()) || (this
						.getSubmitDate() != null
						&& castOther.getSubmitDate() != null && this
						.getSubmitDate().equals(castOther.getSubmitDate())))
				&& ((this.getOrderState() == castOther.getOrderState()) || (this
						.getOrderState() != null
						&& castOther.getOrderState() != null && this
						.getOrderState().equals(castOther.getOrderState())))
				&& ((this.getApproveUserName() == castOther
						.getApproveUserName()) || (this.getApproveUserName() != null
						&& castOther.getApproveUserName() != null && this
						.getApproveUserName().equals(
								castOther.getApproveUserName())))
				&& ((this.getApproveDesc() == castOther.getApproveDesc()) || (this
						.getApproveDesc() != null
						&& castOther.getApproveDesc() != null && this
						.getApproveDesc().equals(castOther.getApproveDesc())))
				&& ((this.getObjId() == castOther.getObjId()) || (this
						.getObjId() != null
						&& castOther.getObjId() != null && this.getObjId()
						.equals(castOther.getObjId())))
				&& ((this.getDeptId() == castOther.getDeptId()) || (this
						.getDeptId() != null
						&& castOther.getDeptId() != null && this.getDeptId()
						.equals(castOther.getDeptId())))
				&& ((this.getApply() == castOther.getApply()) || (this
						.getApply() != null
						&& castOther.getApply() != null && this.getApply()
						.equals(castOther.getApply())))
				&& ((this.getDownload() == castOther.getDownload()) || (this
						.getDownload() != null
						&& castOther.getDownload() != null && this
						.getDownload().equals(castOther.getDownload())))
				&& ((this.getDetail() == castOther.getDetail()) || (this
						.getDetail() != null
						&& castOther.getDetail() != null && this.getDetail()
						.equals(castOther.getDetail())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrderId() == null ? 0 : this.getOrderId().hashCode());
		result = 37 * result
				+ (getOrderDesc() == null ? 0 : this.getOrderDesc().hashCode());
		result = 37 * result
				+ (getOrderName() == null ? 0 : this.getOrderName().hashCode());
		result = 37
				* result
				+ (getCreateDate() == null ? 0 : this.getCreateDate()
						.hashCode());
		result = 37
				* result
				+ (getCreateUserId() == null ? 0 : this.getCreateUserId()
						.hashCode());
		result = 37
				* result
				+ (getModifyDate() == null ? 0 : this.getModifyDate()
						.hashCode());
		result = 37
				* result
				+ (getModifyUserId() == null ? 0 : this.getModifyUserId()
						.hashCode());
		result = 37
				* result
				+ (getSubmitDate() == null ? 0 : this.getSubmitDate()
						.hashCode());
		result = 37
				* result
				+ (getOrderState() == null ? 0 : this.getOrderState()
						.hashCode());
		result = 37
				* result
				+ (getApproveUserName() == null ? 0 : this.getApproveUserName()
						.hashCode());
		result = 37
				* result
				+ (getApproveDesc() == null ? 0 : this.getApproveDesc()
						.hashCode());
		result = 37 * result
				+ (getObjId() == null ? 0 : this.getObjId().hashCode());
		result = 37 * result
				+ (getDeptId() == null ? 0 : this.getDeptId().hashCode());
		result = 37 * result
				+ (getApply() == null ? 0 : this.getApply().hashCode());
		result = 37 * result
				+ (getDownload() == null ? 0 : this.getDownload().hashCode());
		result = 37 * result
				+ (getDetail() == null ? 0 : this.getDetail().hashCode());
		return result;
	}

}